import request from '@/utils/request'
// 查询自助机配置
export function getKioskTypeList(params) {
  return request({
    url: '/manage/Man/selDevType',
    method: 'POST',
    data: params
  })
}
// 添加自助机设备
export function insertKioskType(params) {
  return request({
    url: '/manage/Man/addDevType',
    method: 'POST',
    data: params
  })
}
// 修改自助机类型
export function updateKioskType(params) {
  return request({
    url: '/manage/Man/updDevType',
    method: 'POST',
    data: params
  })
}
// 删除自助机类型
export function deleteKioskType(params) {
  return request({
    url: '/manage/Man/delDevType',
    method: 'POST',
    data: params
  })
}
// 全局配置
export function postGlobalConfig(params) {
  return request({
    url: '/manage/Index/globalConfig',
    method: 'POST',
    data: params
  })
}
// 查询全局配置
export function getGlobalConfig(params) {
  return request({
    url: '/manage/Index/selConfig',
    method: 'POST',
    data: params
  })
}
// 删除轮播图
export function deleteBanner(params) {
  return request({
    url: '/manage/Index/delBanner',
    method: 'POST',
    data: params
  })
}
// 支付渠道配置模块查询
export function getPayList(params) {
  return request({
    url: '/manage/Index/selPayMoudle',
    method: 'POST',
    data: params
  })
}

// 支付渠道配置
export function payWayConfig(params) {
  return request({
    url: '/manage/Index/addMoudlePay',
    method: 'POST',
    data: params
  })
}
// 支付渠道中的配置模块
export function getPayFunc(params) {
  return request({
    url: '/manage/Index/selMoudlePay',
    method: 'POST',
    data: params
  })
}

// 功能配置中功能模块
export function getFuncList(params) {
  return request({
    url: '/manage/Index/selModule',
    method: 'POST',
    data: params
  })
}
// 设置功能配置中功能模块
export function postFuncModel(params) {
  return request({
    url: '/manage/Index/setDevMod',
    method: 'POST',
    data: params
  })
}
// 查询设置功能配置中功能模块
export function getSingelFuncModel(params) {
  return request({
    url: '/manage/Index/selDevMod',
    method: 'POST',
    data: params
  })
}
// 修改支付渠道配置中单个支付功能的装填
export function changePayState(params) {
  return request({
    url: '/manage/Index/updPayMoudle',
    method: 'POST',
    data: params
  })
}
// 特殊日期配置管理
export function getSpecialTimeList(params) {
  return request({
    url: '/manage/man/selHoliday',
    method: 'POST',
    data: params
  })
}

// 添加特殊日期配置管理
export function insertSpecialTime(params) {
  return request({
    url: '/manage/man/addHoliday',
    method: 'POST',
    data: params
  })
}
// 修改特殊日期配置管理
export function updateSpecialTime(params) {
  return request({
    url: '/manage/man/updHoliday',
    method: 'POST',
    data: params
  })
}
// 删除特殊日期配置管理
export function deleteSpecialTime(params) {
  return request({
    url: '/manage/man/delHoliday',
    method: 'POST',
    data: params
  })
}

// 添加文案配置
export function insertCopyWrite(params) {
  return request({
    url: '/manage/Man/addCopyConf',
    method: 'POST',
    data: params
  })
}
// 删除文案配置
export function deleteCopyWrite(params) {
  return request({
    url: '/manage/Man/delCopyConf',
    method: 'POST',
    data: params
  })
}
// 修改文案配置
export function updateCopyWrite(params) {
  return request({
    url: '/manage/Man/updCopyConf',
    method: 'POST',
    data: params
  })
}
// 查询文案配置
export function getCopyWriteList(params) {
  return request({
    url: '/manage/Man/selCopyConf',
    method: 'POST',
    data: params
  })
}

// 添加接口配置
export function insertInterface(params) {
  return request({
    url: '/manage/Man/addInterface',
    method: 'POST',
    data: params
  })
}
// 删除接口配置
export function deleteInterface(params) {
  return request({
    url: '/manage/Man/delInterface',
    method: 'POST',
    data: params
  })
}
// 修改接口配置
export function updateInterface(params) {
  return request({
    url: '/manage/Man/updInterface',
    method: 'POST',
    data: params
  })
}
// 查询接口配置
export function getInterfaceList(params) {
  return request({
    url: '/manage/Man/selInterface',
    method: 'POST',
    data: params
  })
}

// 添加自助机区域配置
export function insertArea(params) {
  return request({
    url: '/manage/Man/addDevPosition',
    method: 'POST',
    data: params
  })
}
// 删除自助机区域配置
export function deleteArea(params) {
  return request({
    url: '/manage/Man/delDevPosition',
    method: 'POST',
    data: params
  })
}
// 修改自助机区域配置
export function updateArea(params) {
  return request({
    url: '/manage/Man/updDevPosition',
    method: 'POST',
    data: params
  })
}
// 查询自助机区域配置
export function getAreaList(params) {
  return request({
    url: '/manage/Man/selDevPosition',
    method: 'POST',
    data: params
  })
}
